import request from "../axios/request";

function addOrg(data = {}){
    return new Promise((resolve, reject) => {
        request('post', '/org/add', data)
            .then(res => {
                resolve(res)
            }, err => {
                console.log(err)
                reject(err)
            })
    })
}


function getOrgInfo(){
    return new Promise((resolve, reject) => {
        request('get', '/org/getSysManagerOrgInfo', {
            keyWord: '',
            districtId: '',
            status: ''
        })
            .then(res => {
                resolve(res)
            }, err => {
                reject(err)
            })
    })
}

export {
    addOrg,
    getOrgInfo
}